package com.zy.design.observer.v1;

import org.apache.log4j.Logger;

/**
 * 顾客
 * @author hugx
 * @create 2018-09-30 9:58
 */
public class Customer {
    private static  final Logger log=Logger.getLogger(Customer.class);

    private String name;

    public Customer(String name) {
        this.name = name;
    }

    /**
     * 接收消息
     * @param msg
     */
    public void acceptInfo(String msg){
        log.info("Customer "+name+" 接收到促销活动消息: "+msg);
    }
}
